/*
 * @Copyright: 2017 www.yyfax.com Inc. All rights reserved.
 */
package com.yyfax.pay.order.data.service;

import com.yyfax.pay.order.model.po.PayinBatchOrderPO;
import com.yyfax.pay.order.model.to.payin.PayinBatchSnapshotVo;

/**
 * 批量代扣订单服务接口
 *
 * @author maojian
 * @date 2017-04-26 11:09:15
 * @since 1.0.0
 */
public interface PayinBatchOrderService {


	/**
	 * 保存实体对象,并返回业务主键
	 *
	 * @author maojian
	 * @date 2017-04-26 11:09:15
	 * @since v1.0.0
	 * @param po 实体对象
	 * @return
	 * @throws Exception
	 */
	public String saveAndReturnBusiKey(PayinBatchOrderPO po) throws Exception;

	/**
	 * 查询批量代扣信息
	 * 
	 * @author maojian
	 * @date 2017-04-26 10:45:12
	 * @since v1.0.0
	 * @param merchantCode
	 * @param orderId
	 * @return
	 * @throws Exception
	 */
	public PayinBatchOrderPO queryByMerchantCodeAndOrderId(String merchantCode, String orderId) throws Exception;
	
	
	/**
	 * 查询批量代扣快照
	 * 
	 * @author maojian
	 * @date 2017-04-26 10:45:12
	 * @since v1.0.0
	 * @param merchantCode
	 * @param orderId
	 * @return
	 * @throws Exception
	 */
	public PayinBatchSnapshotVo querySnapshotByMerchantCodeAndOrderId(String merchantCode, String orderId) throws Exception;
	
	/**
	 * @param payinBatchOrderPO
	 */
	public int modify(PayinBatchOrderPO payinBatchOrderPO) throws Exception;
	
	

}
